import http from './index'


//获取验证码
export const getCodeApi = (phone)=>{
  return http({
    url:'/mlssms/sendSms',
    method:'POST',
    headers:{'Content-Type':"application/x-www-form-urlencoded"},
    data:'phone='+phone,

  })
}

//根据验证码和手机号获取token
export const getTokenApi = (user)=>{
  return http({
    url:'/mlstherapist/login',
    method:'POST',
    headers:{'Content-Type':"application/x-www-form-urlencoded"},
    data:'phone='+user.phone+'&code='+user.code,

  })
}
